{% extends "student/student.html" %}

{% block app_content %}
<div class="container mb-4"></div>
<h1 class="display-6" align="center">成绩查询</h1>
    <table class="table table-striped table-hover">
            <thead class="thead-dark">
        <tr>
            <th class="lead">课程号</th>
            <th class="lead">课程名</th>
            <th class="lead">课程学分</th>
            <th class="lead">课程学时</th>
            <th class="lead">开课学院</th>
            <th class="lead">任课教师</th>
            <th class="lead">成绩</th>
        </tr>
        </thead>
        <tbody>
        {% if tables %}
        {% for table in tables %}
        <tr>
           <td class="lead">{{ table.CourseNum }}</td>
           <td class="lead">{{ table.CourseName }}</td>
           <td class="lead">{{ table.CourseCredit }}</td>
           <td class="lead">{{ table.CourseTime }}</td>
           <td class="lead">{{ table.CourseDept }}</td>
           <td class="lead">{{ table.TeacherName }}</td>
           {% if table.Grade %}
           <td class="lead">{{ table.Grade }}</td>
           {% else %}
           <td class="lead">暂无</tr>
           {% endif %}
        </tr>
        {% endfor %}
        {% endif %}
        </tbody>
    </table>

{% endblock %}